home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / cqa.zip / GUITCPP.BCP < prev    next >
Text File  |  1991-03-27  |  687b  |  14 lines

  1. QUESTION:  The demo that accompanies the book "Graphic User Interfaces for
  2.            Turbo C++" compiles file under Turbo C++ but will not compile
  3.            with Borland C++.  I get undefined symbols during link for three
  4.            member functions defined in the PainoPage class.  What's wrong?
  5.  
  6. ANSWER:    There is a difference between how TC++ and BC++ implement the
  7.            C++ specification.  BC++ 2.0 requires that you define the
  8.            static member variables at file scope.  That is, outside any
  9.            function or class, you need a line like:
  10.  
  11.                     int PianoPage::recorder_mode = 0;
  12.  
  13.            and similarly for the other two statics.
  14.